﻿using System.Collections.Generic;
using System.Threading.Tasks;
using NJ.Dto.RoleMenu;

namespace NJ.Service.RoleMenu
{
    public interface IRoleMenuService
    {
        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        Task<List<GetMenuRolesDto>> GetMenusAsync();
        /// <summary>
        /// 获取角色-菜单 树
        /// </summary>
        /// <param name="RoleId"></param>
        /// <returns></returns>
        Task<List<GetHomeMenuTreeDto>> GetHomeMenuTreeAsync(int RoleId);
        /// <summary>
        /// 批量添加角色-菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task SaveAsync(CreateRoleMenuDto input);
        /// <summary>
        /// 获取角色，判断下是否有角色
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<List<GetRoleAndCheckMenuExistDto>> GetRoleAndCheckMenuExistAsync(int Id);
    }
}
